package com.baifc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * projectName: spring-in-action-web
 * packageName: com.baifc.entity
 * Created: 2019/5/17.
 * Auther: baifc
 * Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Spitter {

    private Long id;

    @NotNull(message = "error")
    @Size(min = 5, max = 16)
    private String username;

    @NotNull(message = "error")
    @Size(min = 5, max = 25)
    private String password;

    @NotNull(message = "error")
    @Size(min = 2, max = 30)
    private String firstName;

    @NotNull(message = "error")
    @Size(min = 2, max = 30)
    private String lastName;

    @NotNull(message = "error")
    @Size(min = 5, max = 30)
    private String email;



}

